package io.itit.ecp.admin.provide.properties;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Data
@Component
@ConfigurationProperties(prefix = "grass.data-range")
public class DataRangeConfigProperties {

    /**
     * 是否开启数据范围权限
     * 默认不开启
     */
    private Boolean enable = false;

    /**
     * 数据权限表名及对应的字段名
     */
    private Map<String, List<String>> tableMap;

}

